﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="eventmanagement.aspx.cs" Inherits="Admin_activitymanagment" Title="优惠活动管理" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:GridView ID="GridView1" CssClass="mytable" runat="server" PageSize="20" AllowPaging="true"
            AutoGenerateColumns="False" 
            onrowcommand="GridView1_RowCommand" >
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        活动标题：<asp:Label ID= "Label2" runat ="server" Text ='<%#Eval("PromotionTitle") %>' ></asp:Label>
                        开始日期：<asp:Label ID= "catalog" runat ="server" Text ='<%#((DateTime)Eval("StartDay")).ToString("yyyy-MM-dd") %>' ></asp:Label>
                        结束日期：<asp:Label ID= "Label1" runat ="server" Text ='<%#((DateTime)Eval("DueDay")).AddDays(-1).ToString("yyyy-MM-dd") %>' ></asp:Label>
                        封面图片：<asp:Image ID="imgPreview" runat="server" ImageUrl='<%# "~/pictures/promotion/small"+Eval("PictureAName") %>'/>
                        海报图片：<asp:Image ID="Image1" runat="server" ImageUrl='<%# "~/pictures/promotion/small"+Eval("PictureBName") %>'/>
                        <asp:LinkButton ID="btnDel" runat="server" Text="删除" CommandName="deletePromotion" CommandArgument='<%#Eval("PromotionId") %>'/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
</asp:GridView>
</asp:Content>

